import axios from 'axios';
import queryString from 'qs';

export const getNetConfig = () => {
  return axios.get('/api/system/getNetwork');
};

export const addNetConfig = body => {
  return axios.post('/api/system/modNetwork', body);
};

export const checkNetwork = filter => {
  const query = queryString.stringify(filter);
  return axios.get(`/api/system/checkNetwork?${query}`);
};
